<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
    <title>首页 </title>
    <link rel="icon" href="favicon.ico" type="image/ico">
    <link href="css/bootstrap.min.css" th:href="@{/css/bootstrap.min.css}" rel="stylesheet">
    <link href="css/materialdesignicons.min.css"  th:href="@{/css/materialdesignicons.min.css}" rel="stylesheet">
    <link href="css/style.min.css" th:href="@{/css/style.min.css}" rel="stylesheet"></head>

<body>
<div class="lyear-layout-web" id="mainContent">
    <div  th:if="${session.grade} eq 3">
        <div th:replace="~{main::rightbar}"></div>
    </div>
    <div  th:if="${session.grade} eq 4">
        <div th:replace="~{adminmain::adminrightbar}"></div>
    </div>
    <div class="lyear-layout-container">

        <header class="lyear-layout-header" th:fragment="topbar">

            <nav class="navbar navbar-default">
                <div class="topbar">

                    <div class="topbar-left">
                        <div class="lyear-aside-toggler">
                            <span class="lyear-toggler-bar"></span>
                            <span class="lyear-toggler-bar"></span>
                            <span class="lyear-toggler-bar"></span>
                        </div>
                        <span class="navbar-page-title"> 需求管理 </span>
                    </div>
                    <div th:replace="~{main::bar}"></div>


                </div>
            </nav>

        </header>

        <main class="lyear-layout-content">

            <div class="container-fluid">

                <div class="row">
                    <div class="col-md-12">
                        <div class="card">
                            <div class="card-header"><h4>需求维护 </h4></div>
                            <div class="card-body" >
                                <form th:action="needweihu" th:method="put" >
                                <input type="hidden" name="id" id="id" th:value="${need.id}" h><br>
                                <div class="form-group">
                                    <label for="needname">需求名称</label>
                                    <input class="form-control" type="text" id="needname" name="needname" placeholder="请输入需求名称.." th:value="${need.needname}">
                                </div>
                                <div class="form-group">
                                    <label for="grade">需求等级</label>
                                    <select class="form-control" id="grade" name="grade" size="1" style="width: 100%;height: 38px" th:field="${need.grade}">
                                        <option value="0">请选择等级</option>
                                        <option value="1">1-一级</option>
                                        <option value="2">2-二级</option>
                                        <option value="3">3-三级</option>
                                        <option value="3">4-四级</option>
                                    </select>                                    </div>
                                <div class="form-group">
                                    <label for="developerid">指派给</label>
                                    <select data-placeholder="请选择实验室"  id="developerid" name="developerid" th:field="${need.developerid}" class="form-control chosen-select" style="width: 100%; "  required >
                                        <option value="0">选择开发人员</option>
                                        <!--playerRoleList后台获取到的集合th:each进行遍历,playerRole作为集合对象的变量名称,th:value="${playerRole.id}作为value值				                        th:text="${playerRole.name}"作为需要显示的内容-->				                        <option th:each="role:${roleList}" th:value="${role.id}"				                                th:text="${role.role_desc}"></option>
                                        <option th:each="role:${userlist}" th:value="${role.id}"

                                                th:text="${role.realname}"></option>
                                    </select>
                                </div>
                                <div class="form-group">
                                    <label for="miaoshu">需求描述</label>
                                    <textarea class="form-control" id="miaoshu" name="miaoshu" rows="5" value="" placeholder="描述" th:text="${need.miaoshu}"></textarea>
                                </div>

                                    <div class="form-group">
                                        <button class="btn btn-primary" type="submit">更改</button>
                                    </div>
                                </form>

                            </div>
                        </div>





                    </div>


                </div>

            </div>

        </main>
        <!--End 页面主要内容-->
    </div>
</div>

<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/bootstrap.min.js"></script>
<script type="text/javascript" src="js/perfect-scrollbar.min.js"></script>
<script type="text/javascript" src="js/main.min.js"></script>

<!--图表插件-->
<script type="text/javascript" src="js/Chart.js"></script>

<script type="text/javascript">
    //别忘了导入该用的js文件


</script>
</body>

</html>